<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<#include "/header.html">
</head>
<body>
	<div id="rrapp" v-cloak>
		<div>总计借阅次数：<d id="borrow_count_d"></d>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;借阅人数：<d id="borrow_person_d"></d></div>
		<br/>
		<div>借阅时长：<d id="borrow_time_count_d"></d></div>
		<div v-show="showList">
			<!-- <div class="grid-btn">
				<div class="form-group col-sm-2">
					<input type="text" class="form-control" v-model="q.userName" @keyup.enter="query" placeholder="用户名">
					<input type="text"  v-model="q.mobileNo" @keyup.enter="query" placeholder="电话号码">
				</div>
				<a class="btn btn-default" @click="query">查询</a>
			</div> -->
			<br/><br/>
		    <table id="jqGrid"></table>
		    <div id="jqGridPager"></div>
	    </div>
	</div>
</body>
<script type="text/javascript" src="${request.contextPath}/statics/js/modules/operation/book-borrow-count.js?_${.now?long}"></script>
<script type="text/javascript">
	var data = {"rfidCode":rfid_code}
	console.log(data);
	function getBookBorrowStatistics(){
		$.ajax({
			url : baseURL + "operation/book/bookBorrowStatistics",
			type : 'POST',
			contentType : "application/json; charset=utf-8",
			data : JSON.stringify(data),
			dataType : 'json',
			success : function(result) {
				if (result.detail != null) {
					document.getElementById("borrow_count_d").innerHTML = result.detail.borrowCount;
					document.getElementById("borrow_person_d").innerHTML = result.detail.borrowPerson;
					document.getElementById("borrow_time_count_d").innerHTML = result.detail.borrowTimeCount+" h";
				} else {
					layer.msg(message, {
						icon : -1
					});
				}
			}
		});
	}
	getBookBorrowStatistics();
</script>

</html>